﻿using NDK.Module.Model;
using System;
using System.Windows.Forms;

namespace NDK.Frm
{
    public partial class Dlg_ManualDownBegin : Form
    {
        public Dlg_ManualDownBegin()
        {
            InitializeComponent();
        }

        private static Dlg_ManualDownBegin _instance;
        private static readonly object singletonLock = new object();
        public static Dlg_ManualDownBegin Instance
        {
            get
            {
                if (_instance == null)
                {
                    lock (singletonLock)
                    {
                        if (_instance == null)
                        {
                            _instance = new Dlg_ManualDownBegin();
                        }
                    }
                }
                return _instance;
            }
        }

        public AlarmInfo alarmInfo = new AlarmInfo();
        private void btn_Startmaintenance_Click(object sender, EventArgs e)
        {
            Dlg_ManualDownOperate.Instance.alarmInfo = alarmInfo;
            Dlg_ManualDownOperate.Instance.Show();
            this.Close();
        }
    }
}
